package com.example.oom;

import java.util.ArrayList;
import java.util.List;

public class RequestedArraySizeExceedsVMLimit {
    public static void main(String[] args) {
        List list = new ArrayList(Integer.MAX_VALUE);
        //int[] hugeArray = new int[Integer.MAX_VALUE];
    }
}
